package day_07;

import java.util.Set;

public class Lab2CS121 {
    public static void main(String[] args) {
        LruCache<Integer, String> lruCache = new LruCache<>(5);
        lruCache.put(1, "AAA");
        lruCache.put(2, "BBB");
        lruCache.put(3, "CCC");
        lruCache.put(4, "DDD");
        lruCache.put(5, "EEE");
        lruCache.put(6, "FFF");
        lruCache.put(7, "GGG");
        lruCache.put(8, "HHH");
        lruCache.put(9, "III");

        lruCache.get(1);
        lruCache.get(5);

        lruCache.put(10, "JJJ");
        lruCache.put(11, "KKK");
        lruCache.put(12, "LLL");
        lruCache.put(4, "MMM");

        System.out.println("lruCache.size() = " + lruCache.size());
        Set<Integer> keySet = lruCache.keySet();
        for(Integer k: keySet) System.out.println("Key = " + k);
    }
}
